package com.chushouya.order.dto.api.partnernotify;

import com.alibaba.fastjson.annotation.JSONField;
import com.general.framework.core.lang.Dates;
import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("用户寄出回收产品")
public class DeliveryNotifyDTO extends PartnerBaseNotify{
    public DeliveryNotifyDTO(){
        super.setNotifyType(PartnerNotifyTypeEnum.DELIVERY.value());
        super.setNotifyName(PartnerNotifyTypeEnum.DELIVERY.named());
    }

    /**
     * 订单数据
     */
    private DeliveryNotifyData data;

    @Data
    @ApiModel("用户寄出回收产品数据")
    public static class DeliveryNotifyData{

        /**
         * 订单状态
         */
        @ApiModelProperty("订单状态")
        private Integer orderStatus;

        /**
         * 快递寄出时间
         */
        @ApiModelProperty("快递寄出时间")
        @JSONField(format= Dates.FMT_FULL_TIME)
        private Date deliveryTime;

        /**
         * 物流单号
         */
        @ApiModelProperty("物流单号")
        private String expressNo;

        /**
         * 物流公司
         */
        @ApiModelProperty("物流公司")
        private String expressCompany;
    }
}
